from django.http import HttpResponse
from django.shortcuts import render

import hashlib

# 创建一个md5账号

# md5对b"12345"进行加密
# m.update(b"12345")
# m.hexdigest()
# 输出的长度是32位
# Create your views here.
from merchant.models import BusinessAccountNumber

m = hashlib.md5()
def admin_view(request):
    if request.method == "GET":
        business = BusinessAccountNumber(account = "18407853811",password_md5 = m.update(b"zhang124"))
        return render(request,"user_information.html")
    elif request.method == "POST":

        return HttpResponse("这里是商家主页")